package com.whq.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.whq.dao.MemberItemShareMapper;
import com.whq.entity.MemberItemShare;
import com.whq.service.MemberItemShareService;

@Service(value = "trMemberItemShareService")
public class MemberItemShareServiceImpl implements MemberItemShareService {

    @Autowired
    private MemberItemShareMapper<MemberItemShare>trMemberItemShareMapper;
    
    @Override
    public Integer insertSelective(MemberItemShare trMemberItemShare) throws Exception {
           return this.trMemberItemShareMapper.insertSelective(trMemberItemShare);
        }

    @Override
    public Integer insertBatch(List<MemberItemShare> trMemberItemShare) throws Exception {
           return this.trMemberItemShareMapper.insertBatch(trMemberItemShare) ;
        }

    @Override
    public Integer deleteByPrimaryKey(Object id) {
            return this.trMemberItemShareMapper.deleteByPrimaryKey(id);
    }

    public Integer deleteBatchByPrimaryKey(List<Object> ids) {
           return this.trMemberItemShareMapper.deleteBatchByPrimaryKey(ids);
    }

    @Override
    public Integer updateByPrimaryKeySelective(MemberItemShare trMemberItemShare) {
           return this.trMemberItemShareMapper.updateByPrimaryKeySelective(trMemberItemShare);
    }

    @Override
    public MemberItemShare findById(Object id) {
           return (MemberItemShare) this.trMemberItemShareMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<MemberItemShare> selectByCondition(MemberItemShare trMemberItemShare) {
           return (List<MemberItemShare>) this.trMemberItemShareMapper.selectByCondition(trMemberItemShare);
    }

    @Override
    public Integer selectCountByCondition(MemberItemShare trMemberItemShare) {
           return  this.trMemberItemShareMapper.selectCountByCondition(trMemberItemShare);
    }

}
